package com.wr.service.impl;

import com.wr.dao.ResumeDao;
import com.wr.pojo.Resume;
import com.wr.service.ResuteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 * @author 王瑞
 * @description:
 * @date 2020/2/23  21:21
 */
@Service
public class ResuteServiceImpl implements ResuteService {

    @Autowired
    private ResumeDao resumeDao;
    @Override
    public Resume findById(Integer id) {

        Optional<Resume> byId = resumeDao.findById(id);
        return byId.get();
    }
}
